﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using LanuageInfo.Forms;

namespace LanguageInfo.Forms
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>  
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            /*测试分页代码 删除即可*/
            Application.Run(new PageText());
            return;
            /*测试分页代码 删除即可*/
            if (ValidatedLogin())
            {
                Application.Run(new MainForm());
            }
            GC.Collect();
            Application.Exit();
        }

        static bool ValidatedLogin()
        {
            bool result = false;
            Form_Login login = new Form_Login();
            if (login.ShowDialog() == DialogResult.OK)
            {
                result = true;
            }
            login.Dispose();
            GC.Collect();
            return result;
        }
    }
}
